import { MobileDesignView, WebDesignView } from '@gct-paas/design-view';
import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/web-design', // 默认跳转到 /web-design
    },
    {
      path: '/web-design',
      name: 'WebDesign',
      component: WebDesignView,
    },
    {
      path: '/mobile-design',
      name: 'MobileDesign',
      component: MobileDesignView,
    },
  ],
});

export default router;
